package logic.weapons;

import com.jme.input.controls.GameControl;
import com.jme.scene.Spatial;

import logic.nodes.MoveForwardController;

public class WeaponFireMoveController extends MoveForwardController {
	
	private static final long serialVersionUID = 1L;
	
	public WeaponFireMoveController(Spatial node, GameControl forwardControl, float maxSpeed, GameControl breakControl) {
		super(node, forwardControl, maxSpeed, 0f, 100f, breakControl, 0f);
		setCurrentSpeed(maxSpeed);
	}
	
	@Override
	public void update(float time) {
		move(time * 60);
	}
}